package com.icinfo.cloud.provider.common.enums;


/**
 * 检查-检查对象类别
 */
public enum CheckLegalEntityTypeEnum {

    EQUIPMENT ( "1","设备设施" ),
    VENUE ( "2" ,"场地场所" ),
    SPECIFIC_POPULATION ("3" ,"特定人群" ),
    SPECIFIC_PRODUCT ("4" ,"特定产品" ),
    PROJECT ("5" ,"项目工程" ),
    STANDARD ( "6","执行标准" ),
    LEGAL_ORG_ENTITY ( "7","机构主体" ),
    LEGAL_PERSON_ENTITY ("8","自然人主体" );



    private String code;// 编码
    private String name;// 描述

    CheckLegalEntityTypeEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }
    public static String getNameByCode(String code) {
        for (CheckLegalEntityTypeEnum status : CheckLegalEntityTypeEnum.values()) {
            if (status.code.equals(code)) {
                return status.getName();
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public CheckLegalEntityTypeEnum setCode(String code) {
        this.code = code;
        return this;
    }


    public String getName() {
        return name;
    }

    public CheckLegalEntityTypeEnum setName(String name) {
        this.name = name;
        return this;
    }
}
